#include <iostream>
#include <memory>
#include <unistd.h>

#include "Daemon.hpp"

int main(int argc, char* argv[])
{
    if(argc != 2) {
        std::cout << "Usage: " << argv[0] << " msg" << std::endl;
    }

    Daemonize(true, false);

    std::string msg = argv[1];
    while(1) {
        std::cout << "Daemon running with message: " << msg << std::endl;
    }


    return 0;
}